#include "context.h"

#include "system/window.h"

namespace dw {
	namespace graffiti {

bool Context::isValid() const
{
	return m_deviceContext != NULL && m_renderContext != NULL;
}

HDC Context::getDeviceContext() const
{
	return m_deviceContext;
}

Context::Context(const ContextSetup& setup)
:	m_setup(setup)
,	m_deviceContext(NULL)
,	m_renderContext(NULL)
{
}

/*static*/ const ContextSetup ContextSetup::Default = {
	4,
	1,
	ContextSetup::Flag_ForwardCompatible | ContextSetup::Flag_Debug,
	ContextSetup::Profile_Core,
	16,
	0
};

	} // namespace graffiti
} // namespace dw
